﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Atacadao.DB.DataAnnotation
{
    public class CustomModelMetada:DataAnnotationsModelMetadata
    {
        public CustomModelMetada(DataAnnotationsModelMetadataProvider provider, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName, DisplayColumnAttribute displayColumnAttribute, IEnumerable<Attribute> attributes)
            : base(provider, containerType, modelAccessor, modelType, propertyName, displayColumnAttribute)
        {
	        _attribuites = new List<Attribute>(attributes);
        }


        private IList<Attribute> _attribuites;

        public IList<Attribute> Attributes {
	        get { return _attribuites; }
        }
    }
}
